<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<c:if test="${page.totalPage > 1 }">
<div class="pagenav">
	<c:if test="${page.currentPage > 1 }">
		<a class="prev" href="${page.actionName }?page=${page.prePage }">上一页</a>
	</c:if>
	<c:forEach begin="${page.begin }" end="${page.end }" step="1" var="i">
		<c:choose>
			<c:when test="${page.currentPage eq i }">
				<a class="current" href="${page.actionName }?page=${i }">${i }</a>
			</c:when>
			<c:otherwise>
				<a href="${page.actionName }?page=${i }">${i }</a>
			</c:otherwise>
		</c:choose>
	</c:forEach>
	<c:if test="${page.currentPage ne page.totalPage }">
		<a class="next" href="${page.actionName }?page=${page.nextPage}">下一页</a>
	</c:if>
</div>
</c:if>